package com.uchedao.seller.ui.car.publish.vin.Entity;

import com.google.gson.annotations.SerializedName;
import com.uchedao.seller.ui.carlist.entity.IndexSelectItem;

/**
 * Created by ZhangZhanghua on 2015/8/24 0024.
 */
public class CarBrand extends IndexSelectItem {
    public static final String ID = "id";
    public static final String NAME = "name";
    public static final String SEARCH_ALL_BRIND = "select * from car_brand ORDER BY lower(full_spell);";
    public static final String SEARCH_BRIND_BY_ID = "select * from car_brand where  id=? order by lower(full_spell);";
    public static final String SPELL = "full_spell";
    public static final String TABLE_NAME = "car_brand";

    @SerializedName("id")
    private int id;

    @SerializedName("text")
    private String name;

    @SerializedName("full_spell")
    private String spell;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSpell() {
        return spell;
    }

    public void setSpell(String spell) {
        this.spell = spell;
    }

    @Override
    public String getIndexSelectAlpha() {
        return String.valueOf(spell.toUpperCase().charAt(0));
    }

    @Override
    public String getIndexSelectName() {
        return name;
    }
}